package com.yun.baymax.bean;

import android.text.TextUtils;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;

import cn.bmob.v3.BmobUser;

/**
 * Created by Administrator on 2017/5/10.
 */
@Entity
public class User extends BmobUser {
    private static final long serialVersionUID = 1L;
    @Id(autoincrement = true)
    private long id;
    private boolean sex;
    private int age;
    private String nick;
    private String content;
    private String headImage;
    private String psw;
    private String hxName;
    private String hxPsw;
    private String eMail;
    private String androidId;
    private String installationId;
    @Unique
    private String userName;
    private String LocationId;

    @Generated(hash = 866803956)
    public User(long id, boolean sex, int age, String nick, String content, String headImage,
                String psw, String hxName, String hxPsw, String eMail, String androidId,
                String installationId, String userName, String LocationId) {
        this.id = id;
        this.sex = sex;
        this.age = age;
        this.nick = nick;
        this.content = content;
        this.headImage = headImage;
        this.psw = psw;
        this.hxName = hxName;
        this.hxPsw = hxPsw;
        this.eMail = eMail;
        this.androidId = androidId;
        this.installationId = installationId;
        this.userName = userName;
        this.LocationId = LocationId;
    }

    @Generated(hash = 586692638)
    public User() {
    }

    public String getAndroidId() {
        return androidId;
    }

    public void setAndroidId(String AndroidId) {
        this.androidId = AndroidId;
    }
    
    public boolean getSex() {
        return this.sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public int getAge() {
        return this.age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getNick() {
        return TextUtils.isEmpty(this.nick) ? this.userName : this.nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getHeadImage() {
        return this.headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public String getPsw() {
        return this.psw;
    }

    public void setPsw(String psw) {
        this.psw = psw;
    }

    public String getHxName() {
        return this.hxName;
    }

    public void setHxName(String hxName) {
        this.hxName = hxName;
    }

    public String getHxPsw() {
        return this.hxPsw;
    }

    public void setHxPsw(String hxPsw) {
        this.hxPsw = hxPsw;
    }

    public String getEMail() {
        return this.eMail;
    }

    public void setEMail(String eMail) {
        this.eMail = eMail;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getInstallationId() {
        return this.installationId;
    }

    public void setInstallationId(String installationId) {
        this.installationId = installationId;
    }

    public String getLocationId() {
        return this.LocationId;
    }

    public void setLocationId(String LocationId) {
        this.LocationId = LocationId;
    }

}
